import Vue from 'vue'
import Favlist from './components/Favlist.vue';
import router from './routes.js'


//import './css/base.css'
Vue.config.debug = true;//开启错误提示

const First = { template: '<div><h2>我是第 1 个子页面</h2></div>' }

// 创建一个路由器实例
// 并且配置路由规则
/*const router = new VueRouter({
  mode: 'history',
  base: __dirname,
  routes: [
     {
      path: '/',
	  redirect: '/index'
    },
	 {
      path: '/index',
	  component: secondcomponent
    },
    {
      path: '/first',
      component: First
    },
    {
      path: '/second',
      component: secondcomponent
    }
  ]
})*/




window.onload = function () {
  /*new Vue({
      el: '#app',
      components: {
        'my-component': Favlist
      }
  });*/
  const app = new Vue({
  router: router,
  render: h => h(Favlist)
}).$mount('#app')
}